'use strict';

const Service = require('egg').Service;
const {
  ERROR,
  SUCCESS,
} = require('../util/util');
class StockService extends Service {
  async import() {
    const {
      ctx,
    } = this;
    try {
      // const res = await ctx.model.Catalog.create(catalog);
      // ctx.status = 201;
      // return Object.assign(SUCCESS, {
      //   data: res,
      // });
      //  REBOL note, 从一个配置文件，或者csv中，导入所有stock
    } catch (error) {
      ctx.status = 500;
      throw (error);
    }
  }
}

module.exports = StockService;
